"""
项目的初始化配置信息:
项目的初始化配置信息:

1.数据库配置

2.redis配置

3.csrf配置

4.session配置,为了后续登陆保持,做铺垫

5.日志信息配置

6.数据库迁移配置

"""""
from flask_script import Manager
from flask_migrate import MigrateCommand,Migrate

from info import create_add,db,models

#调用业务模块
app = create_add("develop")

manager = Manager(app)

Migrate(app,db)

manager.add_command("db",MigrateCommand)

if __name__ == '__main__':
    manager.run()